package com.hundunjiang.CommonServer.constant;

/**
 * 权限相关常量定义
 * Created by macro on 2020/6/19.
 */
public interface AuthConstant {

    /**
     * JWT存储权限前缀
     */
    String AUTHORITY_PREFIX = "ROLE_";

    /**
     * JWT存储权限属性
     */
    String AUTHORITY_CLAIM_NAME = "authorities";

    /**
     * 公用服务-client_id
     */
    String TOOLS_CLIENT_ID = "tools-client";

    /**
     * 博客-web-client_id
     */
    String BLOG_WEB_CLIENT_ID = "blog-web-client";
    /**
     * 博客-phone-client_id
     */
    String BLOG_PHONE_CLIENT_ID = "blog-phone-client";
    /**
     * 后台-admin-client_id
     */
    String ADMIN_CLIENT_ID = "admin-client";
    /**
     *  公用服务接口路径匹配
     */
    String TOOLS_URL_PATTERN = "/tools-server/**";
    /**
     * 博客-web接口路径匹配
     */
    String BLOG_WEB_URL_PATTERN = "/blog-web-server/**";
    /**
     * 博客-phone接口路径匹配
     */
    String BLOG_PHONE_URL_PATTERN = "/blog-phone-server/**";
    /**
     * 后台接口路径匹配
     */
    String ADMIN_URL_PATTERN = "/admin-server/**";
    /**
     * 认证信息Http请求头
     */
    String JWT_TOKEN_HEADER = "Authorization";

    /**
     * JWT令牌前缀
     */
    String JWT_TOKEN_PREFIX = "Bearer ";
    
}
